import 'package:flutter_enjoy_plus/constants/index.dart';
import 'package:flutter_enjoy_plus/utils/RequestDio.dart';

// 获取社区公告列表
Future<dynamic> getAnnounceListAPI({Map<String, dynamic>? params}) =>
    requestDio.get(HTTP_PATH.ANNOUNCE_LIST, params: params);

// dynamic 没办法as 成class
// Flutter dynamic类型转化class

// flutter 只支持显式的转化成class
// 鸿蒙可以直接as 成class


// 获取社区公告详情
Future<dynamic> getAnnounceDetailAPI(String id) => requestDio.get('${HTTP_PATH.ANNOUNCE_LIST}/$id');
